package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h2>聊天详情表</h2>
 * Created by Lee.
 */

@Data
@TableName("v_chat_detail")
@NoArgsConstructor
public class ChatDetailEntity extends BaseEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long chatId;
    private Long userId;
    private String content;
    private String duration;
    private int type;
    private Integer isLatest;

    public ChatDetailEntity(Long chatId, Long userId, String content,String duration,int type) {
        this.chatId = chatId;
        this.userId = userId;
        this.content = content;
        this.duration = duration;
        this.type = type;
    }
}
